import os

# 获取当前工作目录下的所有文件和文件夹
current_directory = r"D:\javaworkspace\alibaba-openmanus\extensions"
all_items = os.listdir(current_directory)

# 筛选出所有的文件（排除文件夹）
files_only = [item for item in all_items if os.path.isfile(os.path.join(current_directory, item))]

files_only